package ec.example.bean;

public class StudentInformation {
	private int studentId;
	private String studentNumber;
	private String studentName;
	private String studentSex;
	private int studentMajorCode;
	private int studentGrade;
	private String studentClass;
	private String studentPhoneNumber;
	private String studentNameAbbreviation;
	
	public StudentInformation() {
		super();
	}

	public StudentInformation(int studentId, String studentNumber, String studentName, String studentSex,
			int studentMajorCode, int studentGrade, String studentClass, String studentPhoneNumber,
			String studentNameAbbreviation) {
		super();
		this.studentId = studentId;
		this.studentNumber = studentNumber;
		this.studentName = studentName;
		this.studentSex = studentSex;
		this.studentMajorCode = studentMajorCode;
		this.studentGrade = studentGrade;
		this.studentClass = studentClass;
		this.studentPhoneNumber = studentPhoneNumber;
		this.studentNameAbbreviation = studentNameAbbreviation;
	}



	public int getStudentId() {
		return studentId;
	}

	public void setStudentId(int studentId) {
		this.studentId = studentId;
	}

	public String getStudentNumber() {
		return studentNumber;
	}

	public void setStudentNumber(String studentNumber) {
		this.studentNumber = studentNumber;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getStudentSex() {
		return studentSex;
	}

	public void setStudentSex(String studentSex) {
		this.studentSex = studentSex;
	}

	public int getStudentMajorCode() {
		return studentMajorCode;
	}

	public void setStudentMajorCode(int studentMajorCode) {
		this.studentMajorCode = studentMajorCode;
	}

	public int getStudentGrade() {
		return studentGrade;
	}

	public void setStudentGrade(int studentGrade) {
		this.studentGrade = studentGrade;
	}

	public String getStudentClass() {
		return studentClass;
	}

	public void setStudentClass(String studentClass) {
		this.studentClass = studentClass;
	}

	public String getStudentPhoneNumber() {
		return studentPhoneNumber;
	}

	public void setStudentPhoneNumber(String studentPhoneNumber) {
		this.studentPhoneNumber = studentPhoneNumber;
	}
	
	public String getStudentNameAbbreviation() {
		return studentNameAbbreviation;
	}

	public void setStudentNameAbbreviation(String studentNameAbbreviation) {
		this.studentNameAbbreviation = studentNameAbbreviation;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + studentId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StudentInformation other = (StudentInformation) obj;
		if (studentId != other.studentId)
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "StudentInformation [studentId=" + studentId + ", studentNumber=" + studentNumber + ", studentName="
				+ studentName + ", studentSex=" + studentSex + ", studentMajorCode=" + studentMajorCode
				+ ", studentGrade=" + studentGrade + ", studentClass=" + studentClass + ", studentPhoneNumber="
				+ studentPhoneNumber + "]";
	}
	
	
}
